import request from '@/utils/request'
import qs from 'qs'

// 获取系统日志列表
export function fetchList (params) {
  return request({
    url: '/sysLog/list',
    method: 'post',
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
    data: qs.stringify(params)
  })
}

// 批量删除系统日志
export function deleteSysLog (params) {
  return request({
    url: '/sysLog/delete',
    method: 'post',
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
    params: params
  })
}
